package vader.Dao;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import vader.Service.SomeService;

public class SomeDao {
    public static void main(String[] args) {
//        SomeService ss = new SomeServiceImpl();
//        ss.dosome();

        String config = "applicationContext.xml";
        ApplicationContext app = new ClassPathXmlApplicationContext(config);
        SomeService someService = (SomeService) app.getBean("SomeService");
        someService.dosome();
    }
}
